<template>
  <a-config-provider :locale="locale">
    <div id="app">
      <div style="text-align:center;margin-bottom:20px;">
        <router-link
          v-for="(item, i) in routers"
          :key="i"
          style="margin:5px;"
          :to="{ path: item.path }"
          >{{ item.meta.title }}</router-link
        >
      </div>
      <router-view />
    </div>
  </a-config-provider>
</template>

<script>
import routers from "./router/default_router";
import zh_CN from "ant-design-vue/lib/locale-provider/zh_CN";
export default {
  name: "App",
  components: {},
  data() {
    return {
      routers,
      locale: zh_CN,
    };
  },
  mounted() {
    console.log(routers);
  },
  methods: {},
};
</script>

<style>
#app {
  padding: 0px 20px;
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: #2c3e50;
  margin-top: 10px;
}
</style>
